package com.gxa.clientproduct.service.impl;

import com.gxa.clientproduct.mapper.GradeMapper;
import com.gxa.clientproduct.pojo.Grade;
import com.gxa.clientproduct.pojo.User;
import com.gxa.clientproduct.service.GradeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: fenglin
 * @Date:2020/11/17 8:45
 * @Version 1.0
 */
@Service("gradeService")
public class GradeServiceImpl implements GradeService {

    @Resource
    GradeMapper gradeMapper;
    @Override
    public List<Grade> gradeFindAll() {
        return gradeMapper.selectAll();
    }

    @Override
    public int updateGrade(Grade grade) {
        return gradeMapper.updateByPrimaryKeySelective(grade);
    }
}
